from fastapi import APIRouter, Depends

from core.login import get_current_user
from .light import light
from .login import login
from .plan import plan
from .schedule import schedule
from .user import user

v1 = APIRouter()

v1.include_router(login, prefix='', tags=["登录，注册，认证相关"])
v1.include_router(light, prefix='/light', tags=["信号灯相关"], dependencies=[Depends(get_current_user)])
v1.include_router(plan, prefix='/plan', tags=["运行方案相关"], dependencies=[Depends(get_current_user)])
v1.include_router(schedule, prefix='/timeplan', tags=["时间运行方案相关"], dependencies=[Depends(get_current_user)])
v1.include_router(user, prefix='/user', tags=["用户相关"], dependencies=[Depends(get_current_user)])
